package com.zenithmind.version.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 标签创建DTO
 * 
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@Data
@Schema(description = "标签创建DTO")
public class TagCreateDTO {

    /**
     * 仓库ID
     */
    @NotBlank(message = "仓库ID不能为空")
    @Schema(description = "仓库ID")
    private String repositoryId;

    /**
     * 提交ID
     */
    @NotBlank(message = "提交ID不能为空")
    @Schema(description = "提交ID")
    private String commitId;

    /**
     * 标签名称
     */
    @NotBlank(message = "标签名称不能为空")
    @Schema(description = "标签名称")
    private String tagName;

    /**
     * 标签描述
     */
    @Schema(description = "标签描述")
    private String description;

    /**
     * 标签类型
     */
    @Schema(description = "标签类型")
    private Integer tagType;

    /**
     * 版本序号
     */
    @Schema(description = "版本序号")
    private Integer versionOrder;

    /**
     * 发布说明
     */
    @Schema(description = "发布说明")
    private String releaseNotes;

    /**
     * 是否为预发布
     */
    @Schema(description = "是否为预发布")
    private Boolean isPrerelease;

    /**
     * 是否为草稿
     */
    @Schema(description = "是否为草稿")
    private Boolean isDraft;
}
